package com.phamloc.shootingchicken.base;

import org.andengine.engine.Engine;
import org.andengine.engine.camera.BoundCamera;
import org.andengine.entity.scene.Scene;
import org.andengine.opengl.vbo.VertexBufferObjectManager;

import android.app.Activity;
import com.phamloc.shootingchicken.manager.ResourcesManager;
import com.phamloc.shootingchicken.manager.SceneManager.SceneType;

public abstract class BaseScene extends Scene {
	protected Activity activity;
	protected Engine engine;
	protected VertexBufferObjectManager vbom;
	protected BoundCamera camera;
	protected ResourcesManager resourcesManager;
	
	public BaseScene()
    {
        this.resourcesManager = ResourcesManager.getInstance();
        this.engine = resourcesManager.engine;
        this.activity = resourcesManager.activity;
        this.vbom = resourcesManager.vbom;
        this.camera = resourcesManager.camera;
        createScene();
    }
	 public abstract void createScene();
	    
	    public abstract void onBackKeyPressed();
	    
	    public abstract SceneType getSceneType();
	    
	    public abstract void disposeScene();
}
